/* 财务报表-门店往来
 */

import { getRequest, getDownload } from '@/lib/axios';

export const financeApi = {
  // 门店往来
  queryStoreList: (param) => {
    return getRequest('/report/store_finance', param);
  },
  // 门店往来导出
  exportStore: (params) => {
    return getDownload('/report/store_finance', params);
  },
  // 经销商往来
  queryDealerList: (param) => {
    return getRequest('/report/dealer_finance', param);
  },
  // 经销商往来导出
  exportDealer: (params) => {
    return getDownload('/report/dealer_finance', params);
  },
};
